* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

body {
    background: #0a0a12;
    color: #00f3ff;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
}

.glitch-text {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 14px;
    color: #00f3ff;
    font-weight: bold;
    text-shadow: 0 0 10px #00f3ff;
    opacity: 0.7;
    z-index: 1000;
}

.glitch-text::before {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(0, 900px, 0, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(0, 900px, 0, 0); }
    100% { clip: rect(0, 900px, 20px, 0); }
}

.container {
    width: 100vw;
    height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-app {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    width: 100%;
    height: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

/* 控制面板样式 */
.control-panel {
    background: rgba(10, 15, 30, 0.85);
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 
        0 0 30px rgba(0, 243, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.control-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #00f3ff 20%, 
        #ff00ff 50%, 
        #00f3ff 80%, 
        transparent 100%);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #00f3ff;
    text-shadow: 0 0 10px #00f3ff;
}

.blink {
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #0f0;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0f0;
    box-shadow: 0 0 10px #0f0;
}

.status-indicator.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.control-group {
    margin-bottom: 25px;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #a0a0ff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cyber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 30, 60, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #00f3ff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 243, 255, 0.2), 
        transparent);
    transition: left 0.5s;
}

.cyber-btn:hover::before {
    left: 100%;
}

.cyber-btn:hover {
    background: rgba(0, 50, 100, 0.8);
    border-color: #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    transform: translateY(-2px);
}

.cyber-btn.danger {
    background: rgba(60, 0, 30, 0.7);
    border-color: rgba(255, 0, 100, 0.3);
    color: #ff0064;
}

.cyber-btn.danger:hover {
    background: rgba(80, 0, 40, 0.8);
    border-color: #ff0064;
    box-shadow: 0 0 15px rgba(255, 0, 100, 0.5);
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    color: #a0a0ff;
    font-size: 13px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cyber-slider {
    flex: 1;
    height: 6px;
    background: rgba(0, 30, 60, 0.7);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.cyber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00f3ff;
    cursor: pointer;
    border: 2px solid #0a0a12;
    box-shadow: 0 0 10px #00f3ff;
}

.slider-value {
    min-width: 30px;
    text-align: center;
    color: #00f3ff;
    font-weight: bold;
}

.theme-selector {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: #a0a0ff;
    font-size: 11px;
}

.theme-option.active {
    border-color: #00f3ff;
    background: rgba(0, 243, 255, 0.1);
}

.theme-preview {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid currentColor;
}

.theme-preview.blue { background: #001a33; color: #00f3ff; }
.theme-preview.green { background: #003300; color: #00ff00; }
.theme-preview.purple { background: #330033; color: #ff00ff; }

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 30, 60, 0.7);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #00f3ff;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider-toggle {
    background-color: rgba(0, 100, 200, 0.7);
}

input:checked + .slider-toggle:before {
    transform: translateX(26px);
}

/* 文件列表样式 */
.files-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.file-count {
    margin-left: auto;
    font-size: 12px;
    color: #00f3ff;
}

.file-list {
    flex: 1;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
    background: rgba(5, 10, 20, 0.5);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(160, 160, 255, 0.5);
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(10, 20, 40, 0.6);
    border-radius: 4px;
    border: 1px solid rgba(0, 243, 255, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.file-item:hover {
    background: rgba(15, 30, 60, 0.8);
    border-color: rgba(0, 243, 255, 0.3);
}

.file-item.active {
    background: rgba(0, 50, 100, 0.6);
    border-color: #00f3ff;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: bold;
    color: #00f3ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.file-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #a0a0ff;
}

.file-size {
    font-size: 11px;
    color: #ff9900;
}

.file-actions {
    display: flex;
    gap: 5px;
}

.file-action-btn {
    background: transparent;
    border: none;
    color: #a0a0ff;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s;
    font-size: 12px;
}

.file-action-btn:hover {
    color: #ff0064;
    background: rgba(255, 0, 100, 0.1);
}

/* 编辑器样式 */
.editor-container {
    display: flex;
    flex-direction: column;
    background: rgba(5, 10, 20, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 
        0 0 40px rgba(0, 243, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(10, 20, 40, 0.8);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.editor-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00f3ff;
}

#fileName {
    background: transparent;
    border: none;
    color: #00f3ff;
    font-size: 16px;
    font-weight: bold;
    min-width: 200px;
    padding: 5px 10px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    transition: all 0.3s;
}

#fileName:focus {
    outline: none;
    border-bottom-color: #00f3ff;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.file-status {
    font-size: 12px;
    color: #0f0;
    margin-left: 10px;
    padding: 2px 8px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.editor-tools {
    display: flex;
    gap: 20px;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tool-label {
    color: #a0a0ff;
    font-size: 12px;
}

.tool-value {
    color: #00f3ff;
    font-weight: bold;
    min-width: 30px;
}

.editor-area-container {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}

.line-numbers {
    width: 50px;
    background: rgba(10, 20, 40, 0.8);
    color: #a0a0ff;
    text-align: right;
    padding: 15px 10px;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: hidden;
    user-select: none;
    border-right: 1px solid rgba(0, 243, 255, 0.1);
}

.editor-area {
    flex: 1;
    background: transparent;
    border: none;
    color: #e0e0ff;
    font-size: 14px;
    line-height: 1.6;
    padding: 15px;
    resize: none;
    outline: none;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
    tab-size: 4;
}

.editor-area:focus {
    background: rgba(5, 10, 20, 0.95);
}

.editor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 95%,
        rgba(0, 243, 255, 0.03)
    );
    pointer-events: none;
    z-index: 1;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(10, 20, 40, 0.8);
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    font-size: 12px;
    color: #a0a0ff;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn.small {
    padding: 5px 10px;
    font-size: 12px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.mini {
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background: rgba(10, 15, 30, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 
        0 0 40px rgba(0, 243, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.cyber-modal {
    min-width: 400px;
    max-width: 600px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00f3ff;
}

.close-modal {
    background: transparent;
    border: none;
    color: #a0a0ff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #ff0064;
}

.modal-body {
    padding: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #a0a0ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px;
    background: rgba(5, 10, 20, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 6px;
    color: #e0e0ff;
    font-size: 14px;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #00f3ff;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.options {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0a0ff;
    cursor: pointer;
    font-size: 14px;
}

.checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00f3ff;
}

.algorithm-selector {
    margin-bottom: 20px;
}

.algorithm-selector label {
    display: block;
    margin-bottom: 8px;
    color: #a0a0ff;
}

.hint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 100, 0, 0.1);
    border: 1px solid rgba(255, 100, 0, 0.3);
    border-radius: 6px;
    color: #ff9900;
    font-size: 12px;
    margin-top: 20px;
}

.warning {
    color: #ff9900;
    font-size: 36px;
    margin-bottom: 15px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
}

/* 通知样式 */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-left: 4px solid #00f3ff;
    border-radius: 8px;
    padding: 15px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0ff;
}

.notification-content i {
    color: #00f3ff;
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-app {
        grid-template-columns: 280px 1fr;
        gap: 15px;
    }
    
    .control-panel {
        padding: 15px;
    }
}

@media (max-width: 900px) {
    .main-app {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: auto;
    }
    
    .control-panel {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .cyber-modal {
        min-width: 300px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .editor-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .editor-tools {
        width: 100%;
        justify-content: space-between;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 20, 40, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 243, 255, 0.5);
}

/* 拖放区域样式 */
.editor-area.drag-over {
    background: rgba(0, 100, 200, 0.1);
    border: 2px dashed #00f3ff;
}